Re: [NTG-context] Automatically loading the page state, LoadPageState

2013-10-01 Thread Hans Hagen
On 10/1/2013 8:35 PM, Marco Patzer wrote: On 2013–10–01 Hans Hagen wrote: in mkiv the overhead is less than in mpii as we don't parse the blob in the same way and the mpiv code is also more optimized so we can consider dropping the SetPageState macro. I see you decided to drop LoadPageState.

Re: [NTG-context] Automatically loading the page state, LoadPageState

2013-10-01 Thread Marco Patzer
On 2013–10–01 Hans Hagen wrote: > in mkiv the overhead is less than in mpii as we don't parse the blob > in the same way and the mpiv code is also more optimized so we can > consider dropping the SetPageState macro. I see you decided to drop LoadPageState. It's about 20ms overhead per 1000 graphi

Re: [NTG-context] Automatically loading the page state, LoadPageState

2013-10-01 Thread Hans Hagen
On 10/1/2013 2:36 PM, Marco Patzer wrote: On 2013–10–01 Marco Patzer wrote: Hi, I wonder if it's necessary to manually load the MetaPost variables using LoadPageState. Some of them are static and do not require an update on each page, e.g. NOfPages, but many of them might change on each page,

Re: [NTG-context] Automatically loading the page state, LoadPageState

2013-10-01 Thread Hans Hagen
On 10/1/2013 2:15 PM, Marco Patzer wrote: Hi, I wonder if it's necessary to manually load the MetaPost variables using LoadPageState. Some of them are static and do not require an update on each page, e.g. NOfPages, but many of them might change on each page, e.g. OnOddPage, PageNumber, TextWidt

Re: [NTG-context] Automatically loading the page state, LoadPageState

2013-10-01 Thread Marco Patzer
On 2013–10–01 Marco Patzer wrote: > Hi, > > I wonder if it's necessary to manually load the MetaPost variables > using LoadPageState. Some of them are static and do not require an > update on each page, e.g. NOfPages, but many of them might change on > each page, e.g. OnOddPage, PageNumber, TextW

[NTG-context] Automatically loading the page state, LoadPageState

2013-10-01 Thread Marco Patzer
Hi, I wonder if it's necessary to manually load the MetaPost variables using LoadPageState. Some of them are static and do not require an update on each page, e.g. NOfPages, but many of them might change on each page, e.g. OnOddPage, PageNumber, TextWidth. Forgetting to use LoadPageState easily re