Optimize BitmapEncoder class

Open
#667 1 comment 1 reaction 0 assignees View on GitHub

Maintainers usually reply within 4 days

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Refactor
Clarity
Needs clarification
Activity status
Stale
Tech stack
java
Domain
performance

Research direction

Start by profiling BitmapEncoder.saveBitmap(List), getBufferedImage, and saveBitMap(toStream) with a graph containing 50k points. Compare where time is spent across these methods and establish repeatable save-time measurements. Done means the costly paths are measurably faster without changing the bitmap output.

Written by the indexing model from the issue text.

Description

Is there a way to optimize the methods of the BitmapEncoder class? They are extremely costly; a graph with 50k points takes over 2 seconds to save when calling saveBitmap(List). getBufferedImage and saveBitMap( toStream ) are even more costly.

Dominant language
Java
Stars
1.6k
Forks
400
Avg merge
3d 9h
Merged PRs (30d)
7

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from knowm/XChart

All issues in knowm/XChart

Similar issues

More Java issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.