Using a css in javafx is causing a huge memory usage for real time candle stick chart

别来无恙 提交于 2019-12-02 04:38:10

问题


I have followed ensemble sample of javafx and tried to create a candle stick chart.

It loads a css file ensemble2.css using this line of code

getStylesheets().add((CandleStickChart.class.getResource(
                    "ensemble2.css")
                    .toExternalForm()));

but when I profile my application (which is adding one candle every 100 ms ) it is using around 2 GigaBits of memory but when I removed CSS it is using only half this memory.

What could be possible reason and how can it be improved.

Thanks

来源:https://stackoverflow.com/questions/17509427/using-a-css-in-javafx-is-causing-a-huge-memory-usage-for-real-time-candle-stick

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!