javascript - gon gem is causing long load times -
i want pass javascript array. created in rails controller , passed javascript gon gem. works takes 5 or 6 second load page.
i'm wondering if there inefficiency or it's gem slow.
here code:
class kinectscontroller < applicationcontroller before_action :set_kinect, only: [:show, :edit, :update, :destroy] # /kinects # /kinects.json def index data = @@cprx.getimagedata() pixeles = data.pixeldata.bytes.to_a gon.vertices=pixeles end
Comments
Post a Comment