Skip to content

Recent Posts

  • How To Rent a Dedicated Server?
  • Hoosha and the Rise of Farsi AI: Transforming Persian Digital Experiences Through Localized Intelligence
  • Products and services Given by a Look for Motor Optimization Enterprise
  • Information Interaction Engineering (ICT) – Definition, Positive aspects And Disadvantages
  • Resisting and Developing Improve – What Leaders Ought to Know

Most Used Categories

  • Tech News (512)
  • SEO (503)
  • Hosting (492)
  • Programmer (486)
  • Telecom (482)
  • Provider (271)
  • SocMed (213)
  • Business (27)
  • Technology (21)
  • Design & Development (11)
Skip to content
block blink

block blink

Experienced in technology

  • Tech News
  • SEO
  • Telecom
  • Programmer
  • Hosting
  • Provider
  • About Us
    • Advertise Here
    • Contact Us
    • Privacy Policy
    • Sitemap
  • Home
  • Performance of String Manipulation in Uniface
Performance of String Manipulation in Uniface

Performance of String Manipulation in Uniface

Bunga CitraJuly 5, 2024March 24, 2023

Just one detail that each individual developer fights with (or should really!) is performance. It can be Alright writing an software that works nicely for just one developer sat messing about on a growth server that only he is working with, but it is pretty various when it truly is thousands of customers all hitting the exact same server, below sensible but major load.

One particular specially high-priced task is string manipulation. Constructing up a string can use a rather big chunk of memory and choose a shocking volume of processor energy. So I made a decision to perform some effectiveness tests to see how this could be improved.

The initial check I did was comparing the use of a regional variable towards a non-databases discipline. I did this take a look at by using the next string…

” ABCDEFGHIJKLMNOPQRSTUVWXYZ 01234567890 abcdefghijklmnopqrstuvwxyz 01234567890″

…and then applying putitem/id with a counter to increase this 20,000 situations, with the next success…

Non-database field = 02:42.14, 02:44.64, 02:43.44 (practically 3 minutes).
Local variable = 00:00.22, 00:00.23, 00:00.22 (less than 1 2nd).
Component variable = 00:00.22, 00:00.22, 00:00.22 (significantly less than 1 2nd).
World variable = 00:00.22, 00:00.22, 00:00.23 (much less than 1 second.

As you can see, when manipulating a string you should in no way use a field to maintain the string. Having said that, it would not look to make any difference which type of variable you use. I ongoing tests the diverse sorts of variables with 200,000 and 2,000,000 iterations, devoid of viewing the periods deviate from each individual other.

So now I’ve located that utilizing a variable was by much more rapidly than employing a industry, I am heading to look at the different ways of setting up up the string. I can imagine of only two diverse ways…

Concatenation (employing $concat)
Indirection (eg. “%%string1%%string2%%%”)

So I set these to the exam with the next four strings…

“ABCDEFGHIJKLMNOPQRSTUVWXYZ ”
“01234567890 ”
“abcdefghijklmnopqrstuvwxyz ”
“01234567890 “

…holding the worth in a area variable and iterating 20,000,000 instances…

Concatenation = 01:03.08, 01:03.71, 01:03.t64 (just over 1 moment)
Indirection = 01:02.01, 01:01.74, 01:01.98 (just above 1 moment)

The big difference is almost negligible, as I had to go to so a lot of iterations in advance of it could be detected. Indirection does pip concatenation to the article though, by a whisker.

I then made the decision to attempt creating up a larger string, by setting up with the very first string and adding the other a few, then using that string and adding the other three yet again, and so on. This time I also utilised a community variable but iterating only 20,000 periods…

Concatenation = 00:56.41, 00:56.02, 00:56.37 (just beneath 1 minute)
Indirection = 00:55.61, 00:56.96, 00:56.92 (just underneath 1 moment)

All over again the distinction is very negligible, proving that in this case, sizing truly will not issue.

Post navigation

Previous: 10 Methods to Make Your Existence As an Web Service provider A lot easier
Next: Why You Ought to Be Utilizing Node.js for Your Net Application

Related Posts

The Worth of Decoupled Objects in OOP

The Worth of Decoupled Objects in OOP

December 24, 2024March 24, 2023 Bunga Citra
Employ the service of Android App Developer – 5 Non Technological Techniques to Seem Forward To

Employ the service of Android App Developer – 5 Non Technological Techniques to Seem Forward To

December 23, 2024March 24, 2023 Bunga Citra
Guidebook to Retain the services of Java Professionals, Examine Out True Secrets

Guidebook to Retain the services of Java Professionals, Examine Out True Secrets

December 19, 2024March 24, 2023 Bunga Citra

Recent Posts

  • How To Rent a Dedicated Server?
  • Hoosha and the Rise of Farsi AI: Transforming Persian Digital Experiences Through Localized Intelligence
  • Products and services Given by a Look for Motor Optimization Enterprise
  • Information Interaction Engineering (ICT) – Definition, Positive aspects And Disadvantages
  • Resisting and Developing Improve – What Leaders Ought to Know

Categories

  • Beauty
  • Business
  • Dental
  • Design & Development
  • Digital Marketing
  • Forex
  • Games
  • Health
  • Home Improvement
  • Hosting
  • Jewelry
  • Law and Legal
  • PC Game
  • Programmer
  • Provider
  • Real Estate
  • SEO
  • Small Business Tips
  • SocMed
  • Tech News
  • Technology
  • Telecom
  • Travel

Archives

BL

Where passion meets professionalism
Copyright @ blockblink.com | Theme: BlockWP by Candid Themes.