evergreensbs

hi all, if i keep styles and other resources name very big like : ToggleButtonMyAppointmentStyle .....will the performance be reduced at runtime finding the resource from file or name length doesnt matter in time for finding resource

Re: Windows Presentation Foundation (WPF) control name length or resource key length performance

Zhou Yong

Well, the length of keys or names doesn't matter here really, since styles and resources are stored as a key/value pair inside a dictionary, and dictionary will do most of the performance housekeeping aka hashing. you might argue the longer the key is, the more time it would take to caculate its hash value, but that level of discrepancy will only create some "trivial" and "undetectable" performance loss.

Sheva





Re: Windows Presentation Foundation (WPF) control name length or resource key length performance

evergreensbs

Thank you zhou yong..............