[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Some small proposals
From: |
Adam Fedor |
Subject: |
Re: Some small proposals |
Date: |
Tue, 19 Jun 2001 08:59:41 -0600 |
Fred Kiefer wrote:
>
> Than there is a small optimization I would like to discuss. When locking
> focus on a view we call the following code (of course it looks a lot
> different there)
>
> DPSgsave(ctxt);
> DPSsetgstate(ctxt, _gstate);
>
> In the xgps backend the first line copies the gstate and pushes it on
> the stack and the second line overwrites the copied gstate with another
> on. So I would like to replace those two lines with a new operator, lets
> say DPSreplacegstate(ctxt, _gstate). The standard implementation of this
> on NSGraphicsContext would just call the two separate operators, but the
It would nice to know if this actually improves thing by doing some sort
of benchmark test before and after.