google / google/j2objc

Very slow compilation of generated Objective C files

Open
#980 3 comments 0 reactions 1 assignee Claimed by @tomball View on GitHub
Dominant language
Java
Stars
6k
Forks
999
Avg merge
19h 20m
Merged PRs (30d)
14

Description

Hi everybody,
after using j2obc to transpile juniversalchardet I noticed that the compilation of the generated Objective C files is really slow. It takes around 30 minutes to compile my project after that. Before adding this library to my Java project the compilation was fine, but after adding it everything slow down.

When I run a "ps -ef | grep clang" on my Mac the output shows that distribution analisys clases the responsible for that slow build:
org/mozilla/universalchardet/prober/distributionanalysis/Big5DistributionAnalysis.m
org/mozilla/universalchardet/prober/distributionanalysis/EUCTWDistributionAnalysis.m
...

[juniversalchardet.zip](https://github.com/google/j2objc/files/2016031/juniversalchardet.zip)

Why is the compiling of this classes so slow? What can I do to accelerate the process?

Thanks

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.