Apple now has a patent for rounded rectangles
patft.uspto.gov1 pointsby tsahyt0 comments
time ./original 1000000
(329, 837799)
real 0m0.183s
user 0m0.180s
sys 0m0.001s
time ./new 1000000
(329, 837799)
real 0m0.017s
user 0m0.015s
sys 0m0.001s