Skip to content

Commit 4437f1e

Browse files
committed
Add documents
1 parent 441da00 commit 4437f1e

File tree

2 files changed

+64
-1
lines changed

2 files changed

+64
-1
lines changed

README.md

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,24 @@
11
# Unity3D.IncrementalCompiler
2-
Unity3D Incremental C# Compiler using Roslyn
2+
3+
Unity3D Incremental C# Compiler using [Roslyn](https://github.com/dotnet/roslyn).
4+
- You can get faster compilation speed. Because it works as an
5+
[incremental compiler](https://en.wikipedia.org/wiki/Incremental_compiler)
6+
- You can use C# 5 and 6 features.
7+
8+
This project is at an early development stage.
9+
And still now it can support only windows platform.
10+
11+
### Setup
12+
13+
Unzip a release zip file to your Unity project top-most directory.
14+
- When Unity 4.x, use IncrementalCompiler.Unity4.zip
15+
- When Unity 5.x, use IncrementalCompiler.Unity5.zip
16+
17+
### Benchmark
18+
19+
Brieft [Benchmark](./docs/Benchmark.md)
20+
21+
### Related works
22+
23+
An integration part between unity3d and incremental compiler is based on
24+
[alexzzzz](https://bitbucket.org/alexzzzz/unity-c-5.0-and-6.0-integration/src)'s works.

docs/Benchmark.md

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
# Benchmark
2+
3+
This benchmark is measured with a proprietary project in my company.
4+
5+
#### Project size
6+
7+
| Project | Count | Size |
8+
| :------------------------ | ----: | --------: |
9+
| Assembly-CSharp-firstpass | 10 | 158,858 |
10+
| Assembly-CSharp | 1,377 | 7,509,543 |
11+
| Assembly-CSharp-Editor | 223 | 1,967,076 |
12+
| Total | 1,610 | 9,635,477 |
13+
14+
### Benchmark Result
15+
16+
#### Unity Mono 3
17+
18+
| Project | Duration (sec) |
19+
| :------------------------ | -------------: |
20+
| Assembly-CSharp-firstpass | 1.72 |
21+
| Assembly-CSharp | 12.78 |
22+
| Assembly-CSharp-Editor | 4.34 |
23+
| Total | 18.84 |
24+
25+
#### Roslyn (Full)
26+
27+
| Project | Duration (sec) |
28+
| :------------------------ | -------------: |
29+
| Assembly-CSharp-firstpass | 3.96 + 0.39 |
30+
| Assembly-CSharp | 6.32 + 0.83 |
31+
| Assembly-CSharp-Editor | 2.16 + 0.46 |
32+
| Total | 14.12 (75%) |
33+
34+
#### Roslyn (Incremental)
35+
36+
| Project | Duration (sec) |
37+
| :------------------------ | -------------: |
38+
| Assembly-CSharp-firstpass | 1.16 + 0.48 |
39+
| Assembly-CSharp | 4.60 + 0.82 |
40+
| Assembly-CSharp-Editor | 1.67 + 0.47 |
41+
| Total | 9.2 (49%) |

0 commit comments

Comments
 (0)