microsoft / ManagedEsent
File Size

The distribution of size of files (measured in lines of code).

Intro
  • File size measurements show the distribution of size of files.
  • Files are classified in four categories based on their size (lines of code): 1-100 (very small files), 101-200 (small files), 201-500 (medium size files), 501-1000 (long files), 1001+(very long files).
  • It is a good practice to keep files small. Long files may become "bloaters", code that have increased to such gargantuan proportions that they are hard to work with.
Learn more...
File Size Overall
  • There are 584 files with 111,266 lines of code.
    • 15 very long files (32,348 lines of code)
    • 31 long files (21,819 lines of code)
    • 86 medium size files (26,681 lines of codeclsfd_ftr_w_mp_ins)
    • 114 small files (16,013 lines of code)
    • 338 very small files (14,405 lines of code)
29% | 19% | 23% | 14% | 12%
Legend:
1001+
501-1000
201-500
101-200
1-100


explore: zoomable circles | sunburst | 3D view
File Size per Extension
1001+
501-1000
201-500
101-200
1-100
cs29% | 19% | 24% | 14% | 12%
py0% | 84% | 0% | 0% | 15%
pl0% | 0% | 99% | 0% | <1%
xsl0% | 0% | 0% | 100% | 0%
y0% | 0% | 0% | 100% | 0%
cpp0% | 0% | 0% | 88% | 11%
xaml0% | 0% | 0% | 0% | 100%
lex0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
EsentInterop48% | 9% | 12% | 10% | 18%
EsentInteropTests25% | 26% | 26% | 14% | 8%
EsentCollectionsTests38% | 10% | 36% | 12% | 3%
Pixie18% | 10% | 32% | 23% | 15%
isamunittests57% | 31% | 0% | 7% | 3%
isam0% | 33% | 32% | 23% | 10%
EsentCollections0% | 23% | 36% | 6% | 34%
EsentInteropSamples0% | 31% | 35% | 23% | 9%
Esedb0% | 84% | 0% | 0% | 15%
PixieSamples0% | 0% | 0% | 88% | 11%
UWPSample0% | 0% | 0% | 0% | 100%
EsentCollectionsSamples0% | 0% | 0% | 0% | 100%
Scripts0% | 0% | 0% | 0% | 100%
Longest Files (Top 50)
File# lines# units
ErrorExceptions.cs
in EsentInterop
8215 823
JetApi.cs
in EsentInterop
3656 186
suppressions.cs
in EsentInterop/Esent
2888 -
ParameterCheckingTests.cs
in EsentInteropTests
2117 184
SqlScanner.cs
in Pixie
1936 60
DMLCurrencyTests.cs
in EsentInteropTests
1828 82
KeyValueExpressionEvaluatorTests.cs
in EsentCollectionsTests
1800 181
HelpersTempTableFixtureTests.cs
in EsentInteropTests
1704 141
PrereadRangesTests.cs
in EsentInteropTests
1593 48
DictionaryLinqTests.cs
in EsentCollectionsTests
1166 94
SetGetSystemParameterTests.cs
in EsentInteropTests
1121 79
EquatableTests.cs
in EsentInteropTests
1104 48
EseInteropTestHelper.cs
in EsentInteropTests
1083 49
IsamTestHelper.cs
in isamunittests
1071 49
Api.cs
in EsentInterop
1066 148
ContentEquatableTests.cs
in EsentInteropTests
955 32
NativeMethods.cs
in EsentInterop
953 1
Cursor.cs
in isam
932 32
BasicDDLTests.cs
in EsentInteropTests
922 33
PersistentDictionary.cs
in EsentCollections
921 32
BasicTableTests.cs
in EsentInteropTests
920 50
DatabaseFileTestHelper.cs
in EsentInteropTests
897 46
Windows8BasicDDLTests.cs
in EsentInteropTests
848 18
ColumnStreamTests.cs
in EsentInteropTests
845 44
DmlTests.cs
in EsentInteropSamples/BasicTest
792 29
KeyRangeTests.cs
in EsentCollectionsTests
785 87
DatabaseConfig.g.cs
in isam/config
754 1
HowDoI.cs
in EsentInteropTests
733 15
RetrieveColumnsPerfTest.cs
in EsentInteropTests
730 30
InstanceParameterTests.cs
in EsentInteropTests
697 69
esedb.py
in Esedb
655 91
RetrieveColumnHelpers.cs
in EsentInterop
610 37
ToStringTests.cs
in EsentInteropTests
602 67
TempTableFixture.cs
in EsentInteropTests
597 18
InstanceTests.cs
in EsentInteropTests
596 29
ColumnTypesTests.cs
in Pixie/PixieTests
596 49
IsamDdlTests.cs
in isamunittests
589 21
jet_dbinfomisc.cs
in EsentInterop
583 8
SystemParameters.cs
in isam
565 1
XpCompatabilityTests.cs
in EsentInteropTests
559 40
TemporaryDatabase.cs
in isam
552 11
FilteredDmlCurrencyTests.cs
in EsentInteropTests
551 27
CursorTests.cs
in Pixie/PixieTests
533 44
Windows8JetApi.cs
in EsentInterop
532 18
SimplePerfTest.cs
in EsentInteropTests
511 35
IJetApi.cs
in EsentInterop
504 -
UnicodePathTests.cs
in EsentInteropTests
477 26
DataConversionTests.cs
in Pixie/PixieTests
467 58
Types.cs
in EsentInterop
446 46
DictionaryCreationTests.cs
in EsentCollectionsTests
441 29
Files With Most Units (Top 20)
File# lines# units
ErrorExceptions.cs
in EsentInterop
8215 823
JetApi.cs
in EsentInterop
3656 186
ParameterCheckingTests.cs
in EsentInteropTests
2117 184
KeyValueExpressionEvaluatorTests.cs
in EsentCollectionsTests
1800 181
Api.cs
in EsentInterop
1066 148
HelpersTempTableFixtureTests.cs
in EsentInteropTests
1704 141
DictionaryLinqTests.cs
in EsentCollectionsTests
1166 94
esedb.py
in Esedb
655 91
KeyRangeTests.cs
in EsentCollectionsTests
785 87
DMLCurrencyTests.cs
in EsentInteropTests
1828 82
SetGetSystemParameterTests.cs
in EsentInteropTests
1121 79
InstanceParameterTests.cs
in EsentInteropTests
697 69
ToStringTests.cs
in EsentInteropTests
602 67
SqlScanner.cs
in Pixie
1936 60
DataConversionTests.cs
in Pixie/PixieTests
467 58
BasicTableTests.cs
in EsentInteropTests
920 50
EseInteropTestHelper.cs
in EsentInteropTests
1083 49
ColumnTypesTests.cs
in Pixie/PixieTests
596 49
IsamTestHelper.cs
in isamunittests
1071 49
EquatableTests.cs
in EsentInteropTests
1104 48
Files With Long Lines (Top 20)

There are 224 files with lines longer than 120 characters. In total, there are 4639 long lines.

File# lines# units# long lines
suppressions.cs
in EsentInterop/Esent
2888 - 2863
JetApi.cs
in EsentInterop
3656 186 136
ErrorExceptions.cs
in EsentInterop
8215 823 99
PrereadRangesTests.cs
in EsentInteropTests
1593 48 97
NativeMethods.cs
in EsentInterop
953 1 90
DMLCurrencyTests.cs
in EsentInteropTests
1828 82 89
ParameterCheckingTests.cs
in EsentInteropTests
2117 184 78
SystemParameters.cs
in isam
565 1 64
Api.cs
in EsentInterop
1066 148 50
KeyValueExpressionEvaluatorTests.cs
in EsentCollectionsTests
1800 181 48
RetrieveColumnsPerfTest.cs
in EsentInteropTests
730 30 37
ColumnConverter.cs
in EsentCollections
438 41 36
TempTableFixture.cs
in EsentInteropTests
597 18 26
Windows8JetApi.cs
in EsentInterop
532 18 25
PredicateExpressionEvaluator.cs
in EsentCollections
390 14 23
IJetApi.cs
in EsentInterop
504 - 22
TemporaryDatabase.cs
in isam
552 11 21
DictionaryLinqTests.cs
in EsentCollectionsTests
1166 94 20
HowDoI.cs
in EsentInteropTests
733 15 20
ContentEquatableTests.cs
in EsentInteropTests
955 32 19