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

ladybug-tools / ladybug / 1042
91%

Build:
DEFAULT BRANCH: master
Ran 10 Jul 2020 08:04PM UTC
Jobs 3
Files 54
Run time 1min
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
1042

push

travis-ci

chriswmackey
perf(analysisperiod) Improve performance of AnalysisPeriod datetimes

This commit includes a number of performance improvements to the analysis period and (by extension) the hourly continuous data collection.  The biggest improvement comes from the fact that we can get the length of the analysis period without having to create all of the individual datetime objects (we just look at the time difference between the start and end datetimes). Also, when a case arrives that datetimes are needed, these datetimes get cached on the AnalysisPeriod object instead of regenerating them every time that they are called. This should dramatically cut down on the number of datetime objects that we are storing in memory at a given time.

The improvement is good enough that I can even notice the tests running faster.

Technically, there's also a bug fix in this commit but it affects such a niche edge case (reversed analysis periods for leap years) that I don't think it's worth a whole new release right now.

26 of 26 new or added lines in 3 files covered. (100.0%)

7496 of 8164 relevant lines covered (91.82%)

1.84 hits per line

Jobs
ID Job ID Ran Files Coverage
2 1042.2 10 Jul 2020 08:04PM UTC 0
91.82
Travis Job 1042.2
3 1042.3 10 Jul 2020 08:04PM UTC 0
91.82
Travis Job 1042.3
4 1042.4 10 Jul 2020 08:06PM UTC 0
0.0
Travis Job 1042.4
Source Files on build 1042
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #1042
  • ce3f6bf3 on github
  • Prev Build on master (#1040)
  • Next Build on master (#1045)
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