Re: Speedup canvas itemconfigure -fill for many polygons.
- From: Mats <matsben@xxxxxxxxx>
- Date: Sun, 30 Mar 2008 23:31:12 -0700 (PDT)
On 31 Mar, 00:41, Alexandre Ferrieux <alexandre.ferri...@xxxxxxxxx>
wrote:
On Mar 30, 10:18 pm, max vorticity <max.vortic...@xxxxxxxxxxx> wrote:
I had an error in my analysis so the slowness is not really
attributable to the itemconfigure command. So forget my original post
except that when using a lot of tags, it is much slower to address the
items by individual tags for each polygon than by the original canvas
id
Yes, this is due to the fact that lookup by id uses a hashtable, while
lookup by tag implies a linear search.
Best would be to rewrite the canvas tag code to use hash tables
instead but
I haven't done that (yet) in tkp::canvas.
Any ideas of how that code should work?
Mats
.
- Follow-Ups:
- Re: Speedup canvas itemconfigure -fill for many polygons.
- From: Alexandre Ferrieux
- Re: Speedup canvas itemconfigure -fill for many polygons.
- References:
- Speedup canvas itemconfigure -fill for many polygons.
- From: max vorticity
- Re: Speedup canvas itemconfigure -fill for many polygons.
- From: Alexandre Ferrieux
- Re: Speedup canvas itemconfigure -fill for many polygons.
- From: max vorticity
- Re: Speedup canvas itemconfigure -fill for many polygons.
- From: Alexandre Ferrieux
- Speedup canvas itemconfigure -fill for many polygons.
- Prev by Date: buy replica handbag online,buy louis vuitton handbag online,buy chanel handbag online,buy Gucci handbag online
- Next by Date: Re: Can I get different Look and Feel than the system i use?
- Previous by thread: Re: Speedup canvas itemconfigure -fill for many polygons.
- Next by thread: Re: Speedup canvas itemconfigure -fill for many polygons.
- Index(es):
Relevant Pages
|