How fast can you chop 24 multi-megapixel images into 1000 pieces each?
Java 41.29%CoffeeScript 21.37%Python 37.34%
cropwars's Introduction
Crop Wars 2012
Rules
Chop one of the following images into 1000 equally sized images that comprise
entire image, 24 times. This should result in 24,000 images.
- image.bmp
- image.tiff
You MUST reload the image 24 times in order to simulate processing 24 unique
images. No caching here.
Can be written in any reasonable language. If you want to utilize CUDA,
OpenCL or write LOLCODE, go for it. It simply has to work and be fast.
Feel free to use any third party libraries along the way.
Must run on a single machine - no cloud solutions. Code will be
tested on a MacBook with a 2.2 GHz Intel Core i7 and 8 GB of RAM.
No rediculous hacks or bending rule #1 - this must be something that could
(with some work, obviously) be used in production.
Make your submissions via pull request.
Leaderboard
Chris (Java, 32s) -- INTENTIONALLY CHEATING!!! Rules don't specify crop size
Almost 99.95% of the time is spent on disk I/O, so
biggest speedup is to just output small image :P