Skip to content

Commit 158ca3e

Browse files
committed
entries: Add entry
1 parent d4e9ca4 commit 158ca3e

File tree

3 files changed

+621
-0
lines changed

3 files changed

+621
-0
lines changed

entries/laksen/README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# Lurendrejer Aksen
2+
3+
Applies a very lowlevel solution to the problem. No tricks, only threads.
4+
5+
1. Split file into chunks at line-ending boundaries.
6+
2. Process all chunks in a number of threads. Add parsed information in thread local hash tables.
7+
3. Merge hash tables in a sorted list when the threads exit.
8+
4. Dump sorted information.
9+
10+
## Example for a 16 core machine
11+
12+
```sh
13+
./bin/laksen datafile.csv 16 16
14+
```

entries/laksen/src/laksen.lpi

Lines changed: 102 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,102 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<CONFIG>
3+
<ProjectOptions>
4+
<Version Value="12"/>
5+
<General>
6+
<Flags>
7+
<MainUnitHasCreateFormStatements Value="False"/>
8+
<MainUnitHasTitleStatement Value="False"/>
9+
<MainUnitHasScaledStatement Value="False"/>
10+
</Flags>
11+
<SessionStorage Value="InProjectDir"/>
12+
<Title Value="laksen"/>
13+
<UseAppBundle Value="False"/>
14+
<ResourceType Value="res"/>
15+
</General>
16+
<BuildModes>
17+
<Item Name="Debug" Default="True"/>
18+
<Item Name="Release">
19+
<CompilerOptions>
20+
<Version Value="11"/>
21+
<Target>
22+
<Filename Value="../../../bin/laksen"/>
23+
</Target>
24+
<SearchPaths>
25+
<IncludeFiles Value="$(ProjOutDir)"/>
26+
<UnitOutputDirectory Value="../../../bin/lib/$(TargetCPU)-$(TargetOS)"/>
27+
</SearchPaths>
28+
<CodeGeneration>
29+
<SmartLinkUnit Value="True"/>
30+
<Optimizations>
31+
<OptimizationLevel Value="3"/>
32+
</Optimizations>
33+
</CodeGeneration>
34+
<Linking>
35+
<Debugging>
36+
<GenerateDebugInfo Value="False"/>
37+
<RunWithoutDebug Value="True"/>
38+
</Debugging>
39+
<LinkSmart Value="True"/>
40+
</Linking>
41+
</CompilerOptions>
42+
</Item>
43+
</BuildModes>
44+
<PublishOptions>
45+
<Version Value="2"/>
46+
<UseFileFilters Value="True"/>
47+
</PublishOptions>
48+
<RunParams>
49+
<FormatVersion Value="2"/>
50+
</RunParams>
51+
<Units>
52+
<Unit>
53+
<Filename Value="laksen.lpr"/>
54+
<IsPartOfProject Value="True"/>
55+
</Unit>
56+
</Units>
57+
</ProjectOptions>
58+
<CompilerOptions>
59+
<Version Value="11"/>
60+
<Target>
61+
<Filename Value="../../../bin/laksen"/>
62+
</Target>
63+
<SearchPaths>
64+
<UnitOutputDirectory Value="../../../bin/lib/$(TargetCPU)-$(TargetOS)"/>
65+
</SearchPaths>
66+
<Parsing>
67+
<SyntaxOptions>
68+
<IncludeAssertionCode Value="True"/>
69+
</SyntaxOptions>
70+
</Parsing>
71+
<CodeGeneration>
72+
<Checks>
73+
<IOChecks Value="True"/>
74+
<RangeChecks Value="True"/>
75+
<OverflowChecks Value="True"/>
76+
<StackChecks Value="True"/>
77+
</Checks>
78+
<VerifyObjMethodCallValidity Value="True"/>
79+
</CodeGeneration>
80+
<Linking>
81+
<Debugging>
82+
<DebugInfoType Value="dsDwarf3"/>
83+
<UseHeaptrc Value="True"/>
84+
<TrashVariables Value="True"/>
85+
<UseExternalDbgSyms Value="True"/>
86+
</Debugging>
87+
</Linking>
88+
</CompilerOptions>
89+
<Debugging>
90+
<Exceptions>
91+
<Item>
92+
<Name Value="EAbort"/>
93+
</Item>
94+
<Item>
95+
<Name Value="ECodetoolError"/>
96+
</Item>
97+
<Item>
98+
<Name Value="EFOpenError"/>
99+
</Item>
100+
</Exceptions>
101+
</Debugging>
102+
</CONFIG>

0 commit comments

Comments
 (0)