[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Refactor get/set_property to take the item as first argument (issue
From: |
dak |
Subject: |
Re: Refactor get/set_property to take the item as first argument (issue 573670043 by address@hidden) |
Date: |
Thu, 09 Apr 2020 10:45:43 -0700 |
On 2020/04/09 17:07:46, hanwenn wrote:
> I'm curious about these optimizations. Can you say more?
Properties are currently stored in alists. They can be stored in
vectors instead. Give all grob properties a number, then have an array
per grob type mapping this number to an index into an array. The first
number can be memoized for literal property names, turning a property
lookup into two indexing operations.
That's the gist. For Scheme code, the memoization could be replaced by
macro compilation, but Guilev2 byte compilation of course is sort of a
roadblock here, too.
https://codereview.appspot.com/573670043/
- Re: Refactor get/set_property to take the item as first argument (issue 573670043 by address@hidden), hanwenn, 2020/04/09
- Re: Refactor get/set_property to take the item as first argument (issue 573670043 by address@hidden), hanwenn, 2020/04/09
- Re: Refactor get/set_property to take the item as first argument (issue 573670043 by address@hidden),
dak <=
- Re: Refactor get/set_property to take the item as first argument (issue 573670043 by address@hidden), Han-Wen Nienhuys, 2020/04/10
- Re: Refactor get/set_property to take the item as first argument (issue 573670043 by address@hidden), David Kastrup, 2020/04/10
- Re: Refactor get/set_property to take the item as first argument (issue 573670043 by address@hidden), Han-Wen Nienhuys, 2020/04/11
- Re: Refactor get/set_property to take the item as first argument (issue 573670043 by address@hidden), Han-Wen Nienhuys, 2020/04/11
- Re: Refactor get/set_property to take the item as first argument (issue 573670043 by address@hidden), Jonas Hahnfeld, 2020/04/11
- Re: Refactor get/set_property to take the item as first argument (issue 573670043 by address@hidden), Han-Wen Nienhuys, 2020/04/11
- Re: Refactor get/set_property to take the item as first argument (issue 573670043 by address@hidden), David Kastrup, 2020/04/11
- Re: Refactor get/set_property to take the item as first argument (issue 573670043 by address@hidden), Han-Wen Nienhuys, 2020/04/12
Re: Refactor get/set_property to take the item as first argument (issue 573670043 by address@hidden), dak, 2020/04/12
Re: Refactor get/set_property to take the item as first argument (issue 573670043 by address@hidden), nine . fierce . ballads, 2020/04/13