Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old January 16th, 2006, 11:35 PM
Bob Greschke
Guest
 
Posts: n/a
Default StringVar() IntVar() vs. Dictionary of same

Let's say I have a program with roughly 1 bazillion StringVars and IntVars
(a lot of tkinter forms). Can anyone guess what the performance hit may or
may not be by going from "global" StringVars and IntVars and accessing them
directly (like barcode = StringVar()) to putting all of the StringVars and
IntVars into a dictionary (like Vars = {"barcode":StringVar()...}) and
accessing them that way? Just roughly what do you think the effect would
be?

Thanks!

Bob


  #2  
Old January 16th, 2006, 11:35 PM
Paul Rubin
Guest
 
Posts: n/a
Default Re: StringVar() IntVar() vs. Dictionary of same

"Bob Greschke" <bob@passcal.nmt.edu> writes:[color=blue]
> Just roughly what do you think the effect would be?[/color]

Either extremely slight or else nonexistent.
  #3  
Old January 17th, 2006, 07:35 PM
Bob Greschke
Guest
 
Posts: n/a
Default Re: StringVar() IntVar() vs. Dictionary of same

"Paul Rubin" <http://phr.cx@NOSPAM.invalid> wrote in message
news:7x1wz7lpl3.fsf@ruckus.brouhaha.com...[color=blue]
> "Bob Greschke" <bob@passcal.nmt.edu> writes:[color=green]
>> Just roughly what do you think the effect would be?[/color]
>
> Either extremely slight or else nonexistent.[/color]

I kinda thought so. Thanks!

Bob


 

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles