Skip to content

Implement a "fast path" for rendering: no type checks, maybe no Node? #88

@davepeck

Description

@davepeck

Currently:

  1. Our processor checks the type of every interpolation on every call to html(); if the developer knows that the types of interpolations will never vary for two templates with the same .strings tuple, we should offer a fast path that cuts out the extraneous checks.

  2. html() returns a Node tree, even though often all we want is a str

This issue asks us to consider and address both.

/cc @ianjosephwilson

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions