Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re^5: Mojo Template, passing dynamic index to array.

by LanX (Sage)
on Jul 16, 2021 at 16:59 UTC ( #11135074=note: print w/replies, xml ) Need Help??


in reply to Re^4: Mojo Template, passing dynamic index to array.
in thread Mojo Template, passing dynamic index to array.

> I often see people pass large data structures to templates, only to never reference most of it.

Is there really a memory impact? The "template" logic is not in a different process, right ?

Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery

  • Comment on Re^5: Mojo Template, passing dynamic index to array.

Replies are listed 'Best First'.
Re^6: Mojo Template, passing dynamic index to array.
by Anonymous Monk on Jul 16, 2021 at 20:58 UTC

    Exactly. The only thing you're passing is a reference.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11135074]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (3)
As of 2021-09-24 15:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?