Comments (2)
The number of milliseconds was exaggerated in the output, I think, but the following results evidence resolveType:
is significant:
| aSurface |
aSurface := AeCairoImageSurface
extent: 16@16
format: AeCairoSurfaceFormat argb32.
[aSurface asFormARGB32] bench.
"164,764 iterations in 5 seconds 3 milliseconds. 32933.040 per second --> current"
"213,155 iterations in 5 seconds 1 millisecond. 42622.476 per second --> resolveType result hardcoded"
For the moment I will workaround with the hardcoded subclass that performs resolveType:
on load, in class initialize
.
from alexandrie.
Profiler now shows:
![Screenshot 2023-11-22 at 23 43 16](https://private-user-images.githubusercontent.com/3044265/285088150-6921031e-d025-41b3-b832-128639a608dc.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjUwMjQ4NTIsIm5iZiI6MTcyNTAyNDU1MiwicGF0aCI6Ii8zMDQ0MjY1LzI4NTA4ODE1MC02OTIxMDMxZS1kMDI1LTQxYjMtYjgzMi0xMjg2MzlhNjA4ZGMucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDgzMCUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDA4MzBUMTMyOTEyWiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9YzhjZDA2NjAzY2RhNThlMzkyZDQzZjgyYzQzNDk4NDcxMmNkZDBkZmFmZDdlZjM5ZWNhYmYyMGExMzgwZjc0ZSZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.cQqIH8vOUswPfCnEKpRW4lgPpGqSP5jl7b9-uchHpqA)
I don't trust too much on this. But above's bench output makes me think 997fac0 does speedup a bit.
from alexandrie.
Related Issues (20)
- Text rendering produces segmentation fault on Pharo 12 HOT 2
- Move AeCanvas to Bloc-Alexandrie? HOT 2
- Mismatch in AeCairoSurface <-> Form round-trip conversion HOT 1
- Expose sourceColor: instead of sourceColorRGB: and sourceColorRGBA:
- Are AeCairoContext>>#appendPath: bench results justified?
- Support Cairo 1.18.0 ? HOT 8
- Two text tests randomly fail too often HOT 1
- Baseline: add group for no-tests HOT 2
- Crash on Hb example HOT 5
- AeCairoMatrix optimization: use new instead of externalNew
- Crash on Harbuzz example HOT 8
- 2 bindings error: MNU on tfPointerAddress HOT 1
- Fix the branches please HOT 1
- We now get FFIUnsupportedUntypedLiteral on P12 HOT 1
- AeFTFace did not understand #newCairoFontFace HOT 3
- Move embedded font faces away from FFI core package
- Create "Alexandrie-Cairo-Freetype" for cairo code that is only for freetype
- Make AeCanvasTest>>#renderForm independent of Pharo's big icon
- deadcode in renderBackgroundAlpha: backgroundAlpha hasBorder: hasBorder outskirtsSelector: outskirtsSelector HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from alexandrie.