eternagame / EteRNA-public

6 stars 3 forks source link

RNA JPEG Rendering type 2 : synthesis_Data #278

Open kws4679 opened 11 years ago

kws4679 commented 11 years ago

type 2 : type : synthesis_Data, param:nid makes jpeg of all the synthesized designs in the puzzle with SHAPE data

kws4679 commented 11 years ago

http://ec2-54-242-61-159.compute-1.amazonaws.com:3000/render/synthesized/{nid}/

grab all synthesized puzzles, take screenshots and return array of addresses

kws4679 commented 11 years ago

At first, it is done by using phantom js which can take a screen shot of html page. But usually lab has a lot of solutions so poor performance of phantomjs can't afford to control rna rendering. So I changed phantom js to canvas. It is much more faster than phantom js but still there is an issue about the performance. By checking printed log, I found that first 20,30 solutions rendered so fast but other solutions rendered slowly because of filesystem writing bottleneck. Because of this, lab nid 3096369 with 134 solutions rendered in 1:53 which means that one solution rendered in 0.8 sec