Skip to content

Commit

Permalink
Diagnosing slowdowns - produced #114 and a change
Browse files Browse the repository at this point in the history
  • Loading branch information
VladUreche committed Jul 14, 2014
1 parent 639261e commit 967c195
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
Expand Up @@ -43,6 +43,7 @@ public final static <T> T minibox2box(double l, byte tag) {
// return null;
// else
// return (T)minibox2box_deep(l, tag);
// throw new IllegalArgumentException("boxing");
return (T)minibox2box_deep(l, tag);
}

Expand All @@ -56,6 +57,7 @@ private final static Object minibox2box_deep(double l, byte tag) {
}

public final static <T> double box2minibox_tt(T a, byte tag) {
// throw new IllegalArgumentException("boxing");
if (a == null)
// return Double.MIN_VALUE;
return 0d;
Expand Down
Expand Up @@ -91,7 +91,7 @@ trait Iterable[@miniboxed +T] extends Traversable[T] {
def iterator: Iterator[T]
}

trait IterableLike[+T, +Repr] extends Traversable[T] {
trait IterableLike[@miniboxed +T, +Repr] extends Traversable[T] {

def iterator: Iterator[T]

Expand Down
Expand Up @@ -78,7 +78,7 @@ trait Iterable[@miniboxed +T] extends Traversable[T] {
def iterator: Iterator[T]
}

trait IterableLike[+T, +Repr] extends Traversable[T] {
trait IterableLike[@miniboxed +T, +Repr] extends Traversable[T] {

def iterator: Iterator[T]

Expand Down

0 comments on commit 967c195

Please sign in to comment.