ergor / ergor/mcworld

Consider writing compute intensive segments in Rust

Open
#21 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
8
Forks
0
PR merge metrics
No merged PRs in 30d

Description

I believe Java suffers from not having value-type structs. We cannot pass a coordinate, nor return one, without allocating it on the heap. There are millions of allocations being done while rendering, which must unnecessarily slow down the process.

Consider the following options:
- Keep using Java only. Try to profile the program and find out whether it is possible to optimize.
- Re-write the rendering logic in Rust. The Java part of the program shall deal with input and preprocessing, and delegate the heavy lifting to the Rust program.
- Re-write the complete program in Rust.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.