Ktor
File Size

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), 100-200 (small files), 200-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 996 files with 70,140 lines of code.
    • 5 very long files (12,238 lines of code)
    • 2 long files (1,274 lines of code)
    • 45 medium size files (13,351 lines of code)
    • 118 small files (16,227 lines of code)
    • 826 very small files (27,050 lines of code)
17% | 1% | 19% | 23% | 38%
Legend:
1001+
501-1000
201-500
101-200
1-100
File Size per Extension
json100% | 0% | 0% | 0% | 0%
kt5% | 2% | 22% | 26% | 43%
kts0% | 0% | 0% | 0% | 100%
html0% | 0% | 0% | 0% | 100%
xml0% | 0% | 0% | 0% | 100%
properties0% | 0% | 0% | 0% | 100%
js0% | 0% | 0% | 0% | 100%
Legend:
1001+
501-1000
201-500
101-200
1-100
File Size per Logical Decomposition
primary
ktor-client47% | 0% | 4% | 13% | 33%
ktor-io11% | 6% | 33% | 23% | 24%
ktor-http15% | 0% | 8% | 39% | 37%
ktor-server0% | 0% | 18% | 30% | 50%
ktor-utils0% | 0% | 34% | 6% | 58%
ktor-features0% | 0% | 28% | 27% | 44%
ktor-network0% | 0% | 15% | 25% | 59%
gradle0% | 0% | 0% | 0% | 100%
karma0% | 0% | 0% | 0% | 100%
ROOT0% | 0% | 0% | 0% | 100%
Legend:
1001+
501-1000
201-500
101-200
1-100
Alternative Visuals
Longest Files (Top 50)
File# lines# units
jvm.json
in ktor-client/ktor-client-benchmarks/reports/main/2019-07-03T14.44.20.802797
5378 -
ByteBufferChannel.kt
in ktor-io/jvm/src/io/ktor/utils/io
2036 48
jvm.json
in ktor-client/ktor-client-benchmarks/reports/main/2019-07-01T14.55.32.068056
1802 -
jvm.json
in ktor-client/ktor-client-benchmarks/reports/main/2019-07-02T15.40.52.873619
1802 -
Mimes.kt
in ktor-http/common/src/io/ktor/http
1220 -
ByteChannelSequential.kt
in ktor-io/common/src/io/ktor/utils/io
667 48
AbstractInput.kt
in ktor-io/common/src/io/ktor/utils/io/core
607 8
LockFreeLinkedList.kt
in ktor-utils/jvm/src/io/ktor/util/internal
490 13
PrimitiveArraysNative.kt
in ktor-io/posix/src/io/ktor/utils/io/bits
434 -
UTF.kt
in ktor-io/jvm/src/io/ktor/utils/io/charsets
419 -
Multipart.kt
in ktor-http/ktor-http-cio/jvm/src/io/ktor/http/cio
416 14
IoBufferJVM.kt
in ktor-io/jvm/src/io/ktor/utils/io/core
409 18
BufferPrimitives.kt
in ktor-io/common/src/io/ktor/utils/io/core
409 -
TLSClientHandshake.kt
in ktor-network/ktor-network-tls/jvm/src/io/ktor/network/tls
401 1
IoBufferJS.kt
in ktor-io/js/src/io/ktor/utils/io/core
401 44
ApplicationEngineEnvironmentReloading.kt
in ktor-server/ktor-server-host-common/jvm/src/io/ktor/server/engine
385 6
AbstractOutput.kt
in ktor-io/common/src/io/ktor/utils/io/core
375 12
IoBufferNative.kt
in ktor-io/posix/src/io/ktor/utils/io/core
361 16
UTF8.kt
in ktor-io/common/src/io/ktor/utils/io/core/internal
340 1
Pipeline.kt
in ktor-utils/common/src/io/ktor/util/pipeline
339 10
Certificates.kt
in ktor-network/ktor-network-tls/ktor-network-tls-certificates/jvm/src/io/ktor/network/tls/certificates
336 1
Strings.kt
in ktor-io/common/src/io/ktor/utils/io/core
324 -
OAuth2.kt
in ktor-features/ktor-auth/jvm/src/io/ktor/auth
322 1
NettyResponsePipeline.kt
in ktor-server/ktor-server-netty/jvm/src/io/ktor/server/netty/cio
313 10
CharsetNative.kt
in ktor-io/posix/src/io/ktor/utils/io/charsets
303 -
SessionSerializerReflection.kt
in ktor-server/ktor-server-core/jvm/src/io/ktor/sessions
297 2
CORS.kt
in ktor-server/ktor-server-core/jvm/src/io/ktor/features
296 8
LibDom.kt
in ktor-client/ktor-client-core/js/src/io/ktor/client/fetch
293 54
Input.kt
in ktor-io/common/src/io/ktor/utils/io/core
292 25
PrimiteArrays.kt
in ktor-io/common/src/io/ktor/utils/io/bits
286 -
RouteSelector.kt
in ktor-server/ktor-server-core/jvm/src/io/ktor/routing
284 15
Buffer.kt
in ktor-io/common/src/io/ktor/utils/io/core
279 14
PrimitiveArraysJs.kt
in ktor-io/js/src/io/ktor/utils/io/bits
265 -
CharsetJVM.kt
in ktor-io/jvm/src/io/ktor/utils/io/charsets
261 -
Cache.kt
in ktor-features/ktor-server-sessions/jvm/src/io/ktor/sessions
259 24
PartialContent.kt
in ktor-server/ktor-server-core/jvm/src/io/ktor/features
246 1
Output.kt
in ktor-io/common/src/io/ktor/utils/io/core
246 17
Compression.kt
in ktor-server/ktor-server-core/jvm/src/io/ktor/features
240 8
CertificatePinner.kt
in ktor-client/ktor-client-ios/darwin/src/io/ktor/client/engine/ios/certificates
240 1
InputLittleEndian.kt
in ktor-io/common/src/io/ktor/utils/io/core
238 -
OAuth1a.kt
in ktor-features/ktor-auth/jvm/src/io/ktor/auth
230 3
Blocking.kt
in ktor-io/jvm/src/io/ktor/utils/io/jvm/javaio
229 16
PipelineContext.kt
in ktor-utils/common/src/io/ktor/util/pipeline
219 11
MemoryPrimitivesNative.kt
in ktor-io/posix/src/io/ktor/utils/io/bits
215 -
BackwardCompatibleImpl.kt
in ktor-features/ktor-locations/jvm/src/io/ktor/locations
214 5
StringValues.kt
in ktor-utils/common/src/io/ktor/util
213 18
SessionsBuilder.kt
in ktor-server/ktor-server-core/jvm/src/io/ktor/sessions
210 4
JWTAuth.kt
in ktor-features/ktor-auth-jwt/jvm/src/io/ktor/auth/jwt
208 5
Endpoint.kt
in ktor-client/ktor-client-cio/common/src/io/ktor/client/engine/cio
206 2
HttpParser.kt
in ktor-http/ktor-http-cio/common/src/io/ktor/http/cio
204 3
Files With Most Units (Top 50)
File# lines# units
LibDom.kt
in ktor-client/ktor-client-core/js/src/io/ktor/client/fetch
293 54
ByteBufferChannel.kt
in ktor-io/jvm/src/io/ktor/utils/io
2036 48
ByteChannelSequential.kt
in ktor-io/common/src/io/ktor/utils/io
667 48
IoBufferJS.kt
in ktor-io/js/src/io/ktor/utils/io/core
401 44
Input.kt
in ktor-io/common/src/io/ktor/utils/io/core
292 25
Cache.kt
in ktor-features/ktor-server-sessions/jvm/src/io/ktor/sessions
259 24
ByteReadChannel.kt
in ktor-io/common/src/io/ktor/utils/io
73 20
StringValues.kt
in ktor-utils/common/src/io/ktor/util
213 18
PosixIo.kt
in ktor-io/posix/src/io/ktor/utils/io/streams
160 18
IoBufferJVM.kt
in ktor-io/jvm/src/io/ktor/utils/io/core
409 18
IntegrationBenchmark.kt
in ktor-server/ktor-server-benchmarks/src/jmh/kotlin/io/ktor/server/benchmarks
144 17
Output.kt
in ktor-io/common/src/io/ktor/utils/io/core
246 17
ByteWriteChannel.kt
in ktor-io/common/src/io/ktor/utils/io
78 17
IoBufferNative.kt
in ktor-io/posix/src/io/ktor/utils/io/core
361 16
Blocking.kt
in ktor-io/jvm/src/io/ktor/utils/io/jvm/javaio
229 16
RouteSelector.kt
in ktor-server/ktor-server-core/jvm/src/io/ktor/routing
284 15
Buffer.kt
in ktor-io/common/src/io/ktor/utils/io/core
279 14
Versions.kt
in ktor-http/jvm/src/io/ktor/http/content
146 14
Multipart.kt
in ktor-http/ktor-http-cio/jvm/src/io/ktor/http/cio
416 14
LockFreeLinkedList.kt
in ktor-utils/jvm/src/io/ktor/util/internal
490 13
HttpBenchmarkClient.kt
in ktor-server/ktor-server-benchmarks/src/jmh/kotlin/io/ktor/server/benchmarks
61 12
RingBufferCapacity.kt
in ktor-io/jvm/src/io/ktor/utils/io/internal
118 12
ByteChannelSequentialJVM.kt
in ktor-io/jvm/src/io/ktor/utils/io
177 12
AbstractOutput.kt
in ktor-io/common/src/io/ktor/utils/io/core
375 12
LibEs5.kt
in ktor-client/ktor-client-core/js/src/io/ktor/client/fetch
65 12
PipelineContext.kt
in ktor-utils/common/src/io/ktor/util/pipeline
219 11
ByteChannelNative.kt
in ktor-io/posix/src/io/ktor/utils/io
175 11
ChunkBuffer.kt
in ktor-io/common/src/io/ktor/utils/io/core/internal
138 11
StethoTracer.kt
in ktor-client/ktor-client-features/ktor-client-tracing/ktor-client-tracing-stetho/android/src/io/ktor/client/features/tracing
86 11
DataConversion.kt
in ktor-server/ktor-server-core/jvm/src/io/ktor/features
60 10
Sessions.kt
in ktor-server/ktor-server-core/jvm/src/io/ktor/sessions
130 10
NettyResponsePipeline.kt
in ktor-server/ktor-server-netty/jvm/src/io/ktor/server/netty/cio
313 10
Pipeline.kt
in ktor-utils/common/src/io/ktor/util/pipeline
339 10
Streams.kt
in ktor-io/jvm/src/io/ktor/utils/io/streams
99 10
CharArrayBuilder.kt
in ktor-http/ktor-http-cio/common/src/io/ktor/http/cio/internals
127 10
CIOApplicationResponse.kt
in ktor-server/ktor-server-cio/jvm/src/io/ktor/server/cio
118 9
BaseApplicationResponse.kt
in ktor-server/ktor-server-host-common/jvm/src/io/ktor/server/engine
194 9
CaseInsensitiveSet.kt
in ktor-utils/common/src/io/ktor/util
48 9
Pool.kt
in ktor-io/common/src/io/ktor/utils/io/pool
81 9
WeakTimeoutQueue.kt
in ktor-http/ktor-http-cio/jvm/src/io/ktor/http/cio/internals
132 9
OkHttpWebsocketSession.kt
in ktor-client/ktor-client-okhttp/jvm/src/io/ktor/client/engine/okhttp
112 9
CallId.kt
in ktor-server/ktor-server-core/jvm/src/io/ktor/features
143 8
CORS.kt
in ktor-server/ktor-server-core/jvm/src/io/ktor/features
296 8
Compression.kt
in ktor-server/ktor-server-core/jvm/src/io/ktor/features
240 8
RoutingResolveTrace.kt
in ktor-server/ktor-server-core/jvm/src/io/ktor/routing
65 8
HttpBenchmarkAsyncClients.kt
in ktor-server/ktor-server-benchmarks/src/jmh/kotlin/io/ktor/server/benchmarks
63 8
ConcurrentList.kt
in ktor-utils/common/src/io/ktor/util/collections
164 8
AbstractInput.kt
in ktor-io/common/src/io/ktor/utils/io/core
607 8
HttpAuthHeader.kt
in ktor-http/common/src/io/ktor/http/auth
183 8
SocketOptions.kt
in ktor-network/common/src/io/ktor/network/sockets
100 7