Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/javascript/436.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript Appcelerator/Titanium-输出整个JSON响应会损害应用程序性能吗?_Javascript_Titanium_Httprequest_Appcelerator_Titanium Alloy - Fatal编程技术网

Javascript Appcelerator/Titanium-输出整个JSON响应会损害应用程序性能吗?

Javascript Appcelerator/Titanium-输出整个JSON响应会损害应用程序性能吗?,javascript,titanium,httprequest,appcelerator,titanium-alloy,Javascript,Titanium,Httprequest,Appcelerator,Titanium Alloy,我正在发出一个HTTP请求,并为我的应用程序数据引入一个JSON结构。我使用Alloy文档中的代码,其中包括一行输出整个响应文本以进行调试。这会影响应用程序在运行时的整体性能吗 var xhr = Ti.Network.createHTTPClient({ onload: function(e) { Ti.API.debug(this.responseText); // rest of function... } }); Ti.

我正在发出一个HTTP请求,并为我的应用程序数据引入一个JSON结构。我使用Alloy文档中的代码,其中包括一行输出整个响应文本以进行调试。这会影响应用程序在运行时的整体性能吗

var xhr = Ti.Network.createHTTPClient({
    onload: function(e) {
        Ti.API.debug(this.responseText);         
        // rest of function...
    }
});
Ti.API.debug()不是在开发环境之外执行的,它对性能的影响是无关的

然而,若你们想确保你们可以通过简单的操作来编写执行>1000的函数:添加、乘以随机值和比较执行时间