Python Forum
[PyQt] Convertion of float to str is very slow.
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[PyQt] Convertion of float to str is very slow.
#3
Okay perhaps not directly related to your question but you might find this handy instead of converting and then re-converting your double value -- store the double value, string value, and 'the rest' that is assuming you actually need to use that double value -- otherwise leave the double as a string and work with it that way. Note if you plan to do a lot of data conversion for any reason you should consider doing that conversion once and then storing both values that way once you have done that conversion its done and eliminating all those extra conversions will greatly speed up your program as a whole and these days memory is cheap.
Reply


Messages In This Thread
RE: Convertion of float to str is very slow. - by Denni - Aug-05-2019, 01:23 PM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020