DelphiTools

DWS, Profiler and other Pascal tools

Menu
Skip to content
  • Home
  • FocusFusion
    • Overview
    • Changelog
    • Download from store
  • Sampling Profiler
    • Overview
    • Changelog & Downloads
    • Tips & News
    • Mini-Guide
  • Dev Tools
    • MapFileStats – Delphi MAP file statistics
    • ZJDBGPack
  • DWScript
    • Overview
    • Tips & News
    • DWScript at BitBucket
    • DWScript Downloads
    • Showcase
  • Android
    • glInfo for Android OpenGL info
    • Départements Français
    • Nickel Iron
  • iOS
    • Nickel Iron
  • HTML5
    • L-System Fiddle
    • Nickel Iron
    • WarTrail
  • Links

Source Code for the String Concatenation/Building Benchmark

1 comment
November 6, 2013 in Tips.

apples_and_a_monsterBy popular request, here is the source code used for the previous String benchmarks StringConcatBench.zip, essentially to test alternative memory managers.

The source is nothing complicated as you will see, just a set of simple function with the test cases, and a couple function that measure run times.

(more…)

Multi-Threaded String Building in Delphi

6 comments
November 5, 2013 in Tips.

apples_and_a_monsterAfter looking at String concatenation and String Building in Delphi, and as a conclusion, it’s time to have a brief look at what happens in multi-threaded settings, such as in a server pushing JSON, XML or some other text data.

(more…)

Pimp your WebSite with an Halloween Bat

1 comment
October 30, 2013 in Ideas, Tips.

bat_rightTime for some Halloween silliness: here is a quick & dirty JavaScript to pimp your website, blog or whatever with a randomly moving vampire bat animation.

Or a dozen. Or a whole flock.

(more…)

Efficient String Building in Delphi

10 comments
October 30, 2013 in Tips.

apples_and_a_monsterAs a followup to the String Concatenation article, let’s take a look at a less trivial case: what if instead of concatenating a couple strings, you want to concatenate a few hundred?

Sounds like a task at which TStringBuilder should excel, but one should never assume, and always measure.

(more…)

Efficient String Concatenation in Delphi

5 comments
October 28, 2013 in Tips.

Apple_WormYou may all know about String concatenation in Delphi, but do you know about the implicit String variables the compiler may create for you?

Along with the implicit variables come implicit exception frames, and a whole lot of hidden stack juggling, which can quickly become hidden complexity bottlenecks.

(more…)

Post navigation

← Older posts
Newer posts →

Archives

Smart Mobile Studio

Smart Programmer

BeginEnd.net

Torry's

DelphiPages

Tags

asm beginend Bottleneck cefHtmlSnapshot Command Compiler CPU Debug Delphi Delphi 11 Download DWS DWScript FastMM FireMonkey Fractals FreePascal GLScene Hash IDE JavaScript JIT Mandelbrot MAP MapFileStats Multithreading OP4JS Optimization Performance Poll Profiler Real-time RTTI SamplingProfiler Site SmartMS String SynEdit Templates Tips TMonitor Tools Unicode WebServer WordPress

Meta

  • Site Admin
  • Entries / Comments RSS
  • WordPress.org
  • Cookie Policy