Skip to content

render() builds vars that aren't used #4

Description

@sfgeorge

The current version of render() foreach-es on all of the ClassView's var_ properties and methods, regardless of whether the current view needs them or not. This can degrade performance when you have a situation with multiple views to a single ViewClass - it always builds all of the vars for all views.

It'd be great if - as the view is parsed - vars are fetched on-demand. If the same $var is referenced twice in a view, the previous value could be returned quickly from $_data.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions