Skip to contentSkip to conversation

data: Add sup0port for new BB_HASH_CODEPARSER_VALS for cache optimisation

PATCH Paulo Neves 2 participants 2 messages Jan 25, 2023 – Jan 26, 2023

lore
Share & tools
lore
#0 lore raw

Perhaps BB_HASH_CODEPARSER_VALS could contain a list of flag names that could then be iterated and the values retrieved safely.

The current implementation will break if any forced value has a white space or a '=' sign. If this variable is to appear in the manual at least these constraints should documented.

#1 lore raw
Quoted 2 lines · Paulo Neves

Perhaps BB_HASH_CODEPARSER_VALS could contain a list of flag names that could then be iterated and the values retrieved safely.

That is definitely worth thinking about. The challenge is the added complexity and the extra variable lookups, particularly if people start to make the expressions more complex. I was trying to keep things simple!

Quoted 3 lines

The current implementation will break if any forced value has a white space or a '=' sign. If this variable is to appear in the manual at least these constraints should documented.

Right, I'm assuming that since we're controlling the substitutions, we can avoid issues like that relatively easily. Martin has run into some recipes which are doing .split("-") on PN though.

I'll give this a bit more thought but I am leaning towards keeping things simple if we can.

Cheers,

Richard