core: Tempcode optimiser

2 votes

Vote

Raised 0% of 132 credits
(132 credits = 22 hours or £726.00)

The challenge is to move Tempcode output as close to echo'ing a static string as possible.

This is split into a number of rings: Ring -2, Ring -1, Ring 0, Ring 1, Ring 2, Ring 3. Different steps are performed in different rings, because they work off of each other. Probably in actual implementation each…

Suggested by Chris Graham on 2nd July 2012

core: Cut-down the Tempcode preprocessing step

2 votes

Vote

Raised 0% of 54 credits
(54 credits = 9 hours or £297.00)

The preprocessor runs on the Tempcode tree of the known output before actually output and handles the following symbols:
- PAGE_LINK (reason: so that we only need a single query to find all the moniker URLs for particular IDs being linked to -- the preprocessor gathers a list to lookup)
- SET (reason:…

Suggested by Chris Graham on 2nd July 2012

core: Output streaming

2 votes

Vote

Raised 0% of 144 credits
(144 credits = 24 hours or £792.00)

If Tempcode isn't in some kind of diagnostic mode (showing the Tempcode tree or whatever), then have a new paradigm for Tempcode evaluation in the API.

Currently we build up a complete Tempcode tree, and then evaluate it. If we drop the idea of preprocessing (discussed in another issue) we no longer nee…

Suggested by Chris Graham on 2nd July 2012

core: Drop Tempcode 'last_attach' feature

2 votes

Vote

Raised 0% of 6 credits
(6 credits = 1 hour or £33.00)

Drop the 'last_attach' feature from the Tempcode engine, as it slows down attach operations considerable (turns an array merge into a loop with a write in it). It is very rarely used, and GET/SET can be used instead to provide cross-template hints. Especially it is not so important now that CSS3 solves the…

Suggested by Chris Graham on 2nd July 2012

core: Use ob_get_clean in Tempcode

1 vote

Vote

Raised 0% of 6 credits
(6 credits = 1 hour or £33.00)

During evaluation make sure we use ob_get_clean rather than ob_get_contents+ob_clean -- this means dropping older versions of PHP.

Suggested by Chris Graham on 2nd July 2012

core: Optimise tempcode tree growth

2 votes

Vote

Raised 0% of 24 credits
(24 credits = 4 hours or £132.00)

- Make code_to_prexecute an array, with codenames as keys, so we know quickly when we don't need to extend it on an attach (due to potentially having the code already) and also conserve memory (as PHP will share references). Actually why is it separate to seq_parts - check this out.

- We don't really…

Suggested by Chris Graham on 2nd July 2012

core: Refactor Tempcode emptiness checks

2 votes

Vote

Raised 0% of 12 credits
(12 credits = 2 hours or £66.00)

We have is_definitely_empty/is_empty/is_really_empty in the engine.

Change this to is_empty and is_empty_shell.

The former does a full evaluation, the latter just checks there are no seq_parts.

Suggested by Chris Graham on 2nd July 2012

core: Javascript and CSS include demodularisation

2 votes

Vote

Raised 0% of 18 credits
(18 credits = 3 hours or £99.00)

If the front page of a zone is viewed by a Guest, and we're loading up the Javascript/CSS dependencies via the initially-seeded self-learning cache, at this point:
- save what CSS and Javascript files are used into the values table, under resources__<zone>
- merge all the resources together when output…

Suggested by Chris Graham on 2nd July 2012

core: Automatic CDN detection

2 votes

Vote

Raised 0% of 18 credits
(18 credits = 3 hours or £99.00)

Limit where cookies are sent, and allow parallelisation, via automatic CDN detection. Do some auto-probing for common sub-domains. Have a config option that specifies what sub-domains to probe, which defaults to "www,mail,ftp,cdn,<IP>" ('www' would not be used if actual base URL is using that). <IP> should…

Suggested by Chris Graham on 2nd July 2012

core_cns: Request invitation feature

0 votes

Vote

Raised 0% of 60 credits
(60 credits = 10 hours or £330.00)

New module for requesting an invitation. This is useful if you want to manually vet who is invited, rather than manually inviting people or allowing existing users to invite others.

Suggested by Chris Graham on 13th July 2012