Japanese online magazine, @IT Jibun Senryaku Lab. (information site for IT engineers to educate and/or develop oneself), published an interview with a Japanese teenage boy, Masahiro Kanai, who improved the performance of several methods in Ruby 1.9. He is the age of high school freshman (the third grade of junior high school in Japanese school system). The article (written in Japanese) is here.
According to the article, Masahiro Kanai joined “the Security and Programming Camp 2009” this summer and chose the subject of Ruby’s performance improvement. His mentor was Koichi Sasada (ko1). The performances of the methods he worked have been bumped up 63% in maximum, 8% in average. His patches were applied to Ruby trunk in Oct. 5 this year.
What Masahiro Kanai did was fundamental for performance tuning. He took unnecessary macro references out from a loop. Masahiro spotted macros below in array.c, string.c, and struct.c were referred every time Ruby checked whether data was hold in a structure or not. Even though data were constants, Ruby saw the macros to judge data’s presence in every loop.
-RARRAY_PTR, RARRAY_LEN
-RSTRING_PTR, RSTRING_LEN
-RSTRUCT_PTR, RSTRUCT_LEN
He optimized the loop by eliminating macro references when data were constants.
The interviewer acclaimed that he made it in his age.
Subscribe to:
Post Comments (Atom)
11 comments:
The title is a bit dramatic.
Congrats :)
Kudos! A performance improvement of 8% is absolutely good.
The title is the same as japanese article. The boy is, indeed, a genius. 8% is great.
Why were they surprised by his age? Young people can't be good at anything?
i'd have to agree with that part. it shouldn't be of any surprise with the age.
demo yappari, omedetou!
I modified the last sentence since my translation was not accurate. Still his age is matter to the interviewer but might not so matter for other Japanese people.
In any case, there's a cultural difference. Generally, Japanese people link an age to his or her activity much more than Americans. In terms of Japanese standard, many people there might have thought he was really young to have made it.
awesome kid is awesome. wasn't even doing anything productive when i was in high school :(
Awesome kid is awesome, agreed.
I was my computing teachers' headache at that age, but I certainly was no Ruby contributor. Congrats!
Speaking of age, I see that you're 253! Wow you look great for your age! ;)
It is a nice blog where the Japanese Teenage boys improved 63%. It is a good percentage. The boys are Genius. The Japanese people link an age to his or her activity much more than Americans. Thanks your blog is attract to me.
Post a Comment