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

phillipsdata / minphp-html
6%
master: 6%

Build:
Build:
LAST BUILD BRANCH: 1.1.0
DEFAULT BRANCH: master
Repo Added 05 Mar 2015 04:55AM UTC
Files 1
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

LAST BUILD ON BRANCH improve-performance-utf8-check
branch: improve-performance-utf8-check
CHANGE BRANCH
x
Reset
  • improve-performance-utf8-check
  • 1.0.0
  • 1.1
  • 1.1.0
  • master
  • php7
  • update-namespace

pending completion
9

push

travis-ci

Tyson Phillips
Improved performance of the UTF-8 check
Fixes #2
Replaced the old algorithm with a simple regex check for UTF-8. Also added mb_detect_encoding if the ext-mbstring extension is enabled.
For small strings, mb_detect_encoding performs about the same as the regex.
For large strings, it appears that the regex is noticably quicker (e.g. 1.5x to 4x faster for a 10,000 byte sequence).
Compared to the old algorithm, both mb_detect_encoding and the regex are about 30x to 40x quicker.

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

4 of 70 relevant lines covered (5.71%)

5.49 hits per line

Relevant lines Covered
Build:
Build:
70 RELEVANT LINES 4 COVERED LINES
5.49 HITS PER LINE
Source Files on improve-performance-utf8-check
  • List 0
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
9 improve-performance-utf8-check Improved performance of the UTF-8 check Fixes #2 Replaced the old algorithm with a simple regex check for UTF-8. Also added mb_detect_encoding if the ext-mbstring extension is enabled. For small strings, mb_detect_encoding performs about the same ... push 31 Oct 2017 10:55PM UTC Tyson Phillips travis-ci pending completion  
See All Builds (12)
  • Repo on GitHub
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

© 2025 Coveralls, Inc