对于Json文件创建,建议使用线程化吗? [英] Is Threading is advisable For Json File Creation

查看:77
本文介绍了对于Json文件创建,建议使用线程化吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

团队,

我有一个用于创建JSON(.txt)文件的方法,文件的平均大小约为1.70 Mb至2.0 mb,此方法需要3到4分钟的时间
创建单个文件,因为数据来自多个表.如果我运行它以生成10到15个文件,但是需要很长时间,现在我的要求是要生成1000个文件

1)可以减少文件创建时间吗?如果可能的话,请建议...
2)线程可以解决我的问题吗?


在此先感谢...

Hi Team,

I have a methods which is used to create the JSON(.txt) file average size of file is arounnd 1.70 Mb to 2.0 mb,this method is is taking 3 to 4 minutes of time
to create single file as the data is coming from multiple tables.if i run it for 10 to 15 files its generated but takes long,now my requirement is to generate for 1000 of files

1)Can it be possible to reduce the file creation time? if possible plz suggest...
2)Can threading solve my problem?


Thanks in advance...

推荐答案

报价:

1)可以吗可以减少文件创建时间?如果可能的话,plz建议...

1) Can it be possible to reduce the file creation time? if possible plz suggest...

这是可能的.但是,我们没有足够的细节来猜测.

It might be possible. However we have not enough details to guess.

报价:

2)线程可以解决我的问题吗?

2) Can threading solve my problem?

线程可以帮助您:可以使GUI响应更快,速度更快在多核计算机上运行.

Threading could help: it could make your GUI more responsive, it would speed up things on a multicore machine.


这篇关于对于Json文件创建,建议使用线程化吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆