diff options
author | minho.sun <minho.sun@samsung.com> | 2016-01-21 13:49:48 +0900 |
---|---|---|
committer | Adeel Kazmi <adeel.kazmi@samsung.com> | 2016-04-18 16:23:28 +0100 |
commit | 24c8baf69f0196d4a9a6ad746b370d026532a585 (patch) | |
tree | c096f1176fb51eca5b41f95cbe37ba56001837b2 /examples/refraction-effect | |
parent | c1ab3b4c9ffa2172d332b85b94546b5d5f730c28 (diff) | |
download | dali-demo-24c8baf69f0196d4a9a6ad746b370d026532a585.tar.gz dali-demo-24c8baf69f0196d4a9a6ad746b370d026532a585.tar.bz2 dali-demo-24c8baf69f0196d4a9a6ad746b370d026532a585.zip |
Improve application launching speed
To improve app launching speed on Tizen (using launchpad), Use -fPIE option instead -fPIC and attach DALI_EXPORT_API in front of each example's main function.
This is the compare result between before and after patch.
(On hawkP 2.4 / using hello-dalidemo that has one pushbutton on stage)
| before Patch | After Patch |
---------------------------------------------
| hello-dalidemo | hello-dalidemo |
---------------------------------------------
| AVG MIN MAX | AVG MIN MAX |
| 1134 1060 1188 | 291 250 337 |
After patch, launching speed drops to 30% of before.
Change-Id:I51a4f673d016f9278f867167dc2ff9f407ea6e7e
Diffstat (limited to 'examples/refraction-effect')
-rw-r--r-- | examples/refraction-effect/refraction-effect-example.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/examples/refraction-effect/refraction-effect-example.cpp b/examples/refraction-effect/refraction-effect-example.cpp index 3203d132..ea8bb6b6 100644 --- a/examples/refraction-effect/refraction-effect-example.cpp +++ b/examples/refraction-effect/refraction-effect-example.cpp @@ -597,8 +597,7 @@ RunTest(Application& app) /*****************************************************************************/ -int -main(int argc, char **argv) +int DALI_EXPORT_API main(int argc, char **argv) { Application app = Application::New(&argc, &argv, DEMO_THEME_PATH); |