• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

apache / commons-lang / 395
95%

Build:
DEFAULT BRANCH: master
Ran 06 Jul 2016 07:48AM UTC
Jobs 3
Files 134
Run time 3min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
395

Pull #169

travis-ci

web-flow
LANG-1248 FastDatePrinter Memory allocation regression

When the code was migrated from StringBuffer to Appendable in LANG-1152.
We've lost the ability to modify the buffer (setCharAt) 
The new implementation of appendFullDigits allocate a temporary char
array to work around that limitation.
This is a major source of memory allocation which is not present in
version 3.4.
Test case : 
Single fastdateformat instance
100000 format of long 
pattern : yyyy-MM-dd'T'HH:mm:ss.SSSZ
lang 3.4 : ~30 MB allocated
lang 3.5-snapshot : ~40 MB allocated
-> ~9.3 MB are coming from appendFullDigits called from
PaddedNumberField

This commit add a fast path for 1 to 4 digits which avoid the memory
allocation from the temporary work array.
Pull Request #169: LANG-1248 FastDatePrinter Memory allocation regression

32 of 32 new or added lines in 1 file covered. (100.0%)

13676 of 14637 relevant lines covered (93.43%)

66830.88 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
2
100.0
src/main/java/org/apache/commons/lang3/time/FastDatePrinter.java

Uncovered Existing Lines

Lines Coverage ∆ File
1
100.0
src/main/java/org/apache/commons/lang3/RandomStringUtils.java
1
100.0
src/main/java/org/apache/commons/lang3/reflect/MethodUtils.java
Jobs
ID Job ID Ran Files Coverage
1 395.1 06 Jul 2016 07:48AM UTC 0
93.42
Travis Job 395.1
2 395.2 06 Jul 2016 07:48AM UTC 0
93.38
Travis Job 395.2
3 395.3 06 Jul 2016 07:51AM UTC 0
93.36
Travis Job 395.3
Source Files on build 395
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #395
  • Pull Request #169
  • PR Base - master (#394)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc