Stop allocating so much in arena tests
Android bots are OOMing.
This commit is contained in:
parent
b85fe01b94
commit
2d27ad19fa
@ -504,7 +504,7 @@ mod test {
|
|||||||
#[test]
|
#[test]
|
||||||
pub fn test_pod() {
|
pub fn test_pod() {
|
||||||
let arena = TypedArena::new();
|
let arena = TypedArena::new();
|
||||||
for _ in range(0, 1000000) {
|
for _ in range(0, 100000) {
|
||||||
arena.alloc(Point {
|
arena.alloc(Point {
|
||||||
x: 1,
|
x: 1,
|
||||||
y: 2,
|
y: 2,
|
||||||
@ -558,7 +558,7 @@ mod test {
|
|||||||
#[test]
|
#[test]
|
||||||
pub fn test_nonpod() {
|
pub fn test_nonpod() {
|
||||||
let arena = TypedArena::new();
|
let arena = TypedArena::new();
|
||||||
for _ in range(0, 1000000) {
|
for _ in range(0, 100000) {
|
||||||
arena.alloc(Nonpod {
|
arena.alloc(Nonpod {
|
||||||
string: ~"hello world",
|
string: ~"hello world",
|
||||||
array: ~[ 1, 2, 3, 4, 5 ],
|
array: ~[ 1, 2, 3, 4, 5 ],
|
||||||
|
Loading…
x
Reference in New Issue
Block a user