Re: Speedup canvas itemconfigure -fill for many polygons.



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
.



Relevant Pages

  • Re: web services & firefox.
    ... security and SSL standards open in Bugzilla. ... Then in your <message tags remove the <part tags that rely on the <s ... > proxy and call it as if the webservice was a local object. ... > called (see error messages included in original post). ...
    (microsoft.public.dotnet.general)
  • Re: Speedup canvas itemconfigure -fill for many polygons.
    ... So forget my original post ... except that when using a lot of tags, it is much slower to address the ... Best would be to rewrite the canvas tag code to use hash tables ... To do this I'd just add proper housekeeping code to keep the hashtable ...
    (comp.lang.tcl)
  • Re: Get Value of Non-ASP.NET Control
    ... "Jonathan Wood" wrote in message ... control. ... So I write and tags to the output. ... the one I described in my original post. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Speedup canvas itemconfigure -fill for many polygons.
    ... 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 ...
    (comp.lang.tcl)
  • [PATCH] tags: add prototypes and external declarations back
    ... Having prototypes in tags is useful for quick lookup which header needs ...
    (Linux-Kernel)