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

pions / ice
80%
master: %

Build:
Build:
LAST BUILD BRANCH: tcp-passive
DEFAULT BRANCH: master
Repo Added 25 Mar 2019 10:56PM UTC
Files 12
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 run-inline
branch: run-inline
CHANGE BRANCH
x
Reset
  • run-inline
  • 0.1.0
  • master
  • topic-update-logging
  • typed-errors
  • v0.1.0
  • v0.1.1
  • v0.2.0
  • v1.0.0

pending completion
16

push

travis-ci

Sean-Der
Optimize ice.Agent.getBestPair()

This function should be trivial but profiles show it taking 3-5% of my
application's CPU time. The problem is the constant creation of a
channel for message passing. This function is called by srtp.WriteRTP
for each packet, so it adds up.

My fix was to create a `runInner` function that utilizies a mutex. I
wanted to convert all `run` functions to `runInner` but the code
occasionally deadlocks in unit tests. The package is definitely a
candidate for a rewrite.

```
name           old time/op    new time/op    delta
GetBestPair-8     915ns ± 3%      80ns ± 4%  -91.23%  (p=0.008 n=5+5)

name           old alloc/op   new alloc/op   delta
GetBestPair-8      128B ± 0%       16B ± 0%  -87.50%  (p=0.008 n=5+5)

name           old allocs/op  new allocs/op  delta
GetBestPair-8      3.00 ± 0%      1.00 ± 0%  -66.67%  (p=0.008 n=5+5)
```

933 of 1168 relevant lines covered (79.88%)

33.07 hits per line

Relevant lines Covered
Build:
Build:
1168 RELEVANT LINES 933 COVERED LINES
33.07 HITS PER LINE
Source Files on run-inline
  • 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
16 run-inline Optimize ice.Agent.getBestPair() This function should be trivial but profiles show it taking 3-5% of my application's CPU time. The problem is the constant creation of a channel for message passing. This function is called by srtp.WriteRTP for ea... push 27 Mar 2019 07:59AM UTC Sean-Der travis-ci pending completion  
17 run-inline Optimize ice.Agent.getBestPair() This function should be trivial but profiles show it taking 3-5% of my application's CPU time. The problem is the constant creation of a channel for message passing. This function is called by srtp.WriteRTP for ea... Pull #3 27 Mar 2019 07:59AM UTC web-flow travis-ci pending completion  
See All Builds (26)
  • 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