Skip to content

GitLab

  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • M mapnik3
  • Project information
    • Project information
    • Activity
    • Members
  • Analytics
    • Analytics
    • Value stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
Collapse sidebar
  • 周峰
  • mapnik3
  • Wiki
  • Compiler Notes

Compiler Notes · Changes

Page history
clone mapnik wiki from github. authored May 14, 2021 by 周峰's avatar 周峰
Show whitespace changes
Inline Side-by-side
Compiler-Notes.md 0 → 100644
View page @ 8516de00
Random notes on compiler results in terms of runtime speed and library size
#### Mapnik [2.1.x branch](https://github.com/mapnik/mapnik/commit/c6fd387469633ee7055aee606abb6f5d3d936a29) with clang++ `3.3 (trunk 177655)` on OS X 10.7
- -Os: libmapnik.dylib is `16.2` MB and tests run in `3.9s`
- -O2: libmapnik.dylib is `12.8` MB and tests run in `3.7s`
- -O3: libmapnik.dylib is `12.5` MB and tests run in `3.7s`
#### Mapnik 3.x
OS X duel core: `2.8 GHz Intel Core i7`
At https://github.com/mapnik/mapnik/commit/66ad95cbbe755c9e905406b6f1227b06b24f60e1
```
$ clang++ -v
Apple LLVM version 6.1.0 (clang-602.0.49) (based on LLVM 3.6.0svn)
Target: x86_64-apple-darwin14.3.0
Thread model: posix
```
```
$ source bootstrap.sh && time make
real 16m31.347s
user 29m1.430s
sys 1m7.557s
```
rebuilding with ccache `v3.2.1` (first run):
```
$ ./configure CXX="/Users/dane/.homebrew/bin/ccache clang++"
$ time make
real 11m3.394s
user 28m36.684s
sys 1m36.502s
```
Second run:
```
make clean
time make
real 0m41.734s
user 0m41.007s
sys 0m15.724s
```
\ No newline at end of file
Clone repository
  • A perfect testcase
  • API changes between v2.0 and v2.1
  • API changes between v3.0 and v3.1
  • AWS Lambda
  • About Mapnik
  • AlsoFilter
  • Api changes between v2.1 and v2.2
  • Api changes between v2.2 and v2.3
  • Api changes between v2.3 and v3.0
  • ArchInstallation
  • Aspect Fix Mode
  • Benchmark Notes
  • BoundsClipping
  • BrokenExceptions
  • BuildingSymbolizer
View All Pages