Forum Post: RE: GUID/sequence

  • Thread starter Thread starter Aidan Jeffery
  • Start date Start date
Status
Not open for further replies.
A

Aidan Jeffery

Guest
Your guess is correct. A problem was found with the generator on Windows only, and was fixed in 11.3 to ensure the uniqueness of the guids. Here’s a link to an earlier thread on this subject: https://community.progress.com/community_groups/openedge_development/f/19/t/8986.aspx From: Stefan Drissen [mailto:bounce-14941@community.progress.com] Sent: Monday, October 20, 2014 4:02 PM To: TU.OE.Development@community.progress.com Subject: RE: [Technical Users - OE Development] GUID/sequence RE: GUID/sequence Reply by Stefan Drissen beginetienne Adding "if true then." slows down on my version of OE much more than 2 ms for 1M iterations. Increment a variable, or casting an integer to string is just as slow as guid(). i = i + 1 is "slow", in comparison to an iteration with no code. I'd rather have a faster substring() function than guid(). This sounds a lot like another conversation on the PEG (or here don't remember) about class instantiation in ABL vs .NET. E- I'm using prowin.exe on 11.4 x64 on Vista x64 on a five year old i7-920. For one million iterations: description ms empty loop 221 if true then . 388 today 847 time 747 string( ii ) 737 string( ii, " 9" ) 1788 substring( "", ii, 1 ) 588 it = it + 1 653 guid 50000 This is not slower - it is crawling. But again - just an observation. Right... so I pulled out 11.2.1 32-bit - 1 million guids in 472 ms.... Is the 11.2.1 guid generator broken and functionally fixed at the expense of performance in 11.4 x64? Stop receiving emails on this subject. Flag this post as spam/abuse.

Continue reading...
 
Status
Not open for further replies.
Back
Top