处理大量数据 [英] dealing with huge data

查看:93
本文介绍了处理大量数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

好吧所以我已经在C中编写了一个程序,我正在处理巨大的

数据(涉及数百万和大量的迭代),并且出于某种原因,

屏幕倾向于冻结,每次执行都没有输出。

但是,我试图减少数据量和程序

运行正常。

可以做些什么来解决这个问题?

ok so i have written a program in C where I am dealing with huge
data(millions and lots of iterations involved) and for some reason the
screen tends to freeze and I get no output every time I execute it.
However, I have tried to reduce the amount of data and the program
runs fine.
What could possibly be done to resolve this ?

推荐答案

我忘记在我尝试打印数据时发生这种情况。 />

我看到它不能用于极其庞大的数据。

I forgot to mention this happened while I was trying to print data.

I have seen it can''t work for extremely huge data.


pereges写道:
pereges wrote:

>

ok所以我在C编写了一个程序,我正在处理巨大的

数据(数百万和数量)所涉及的迭代次数)由于某种原因,

屏幕趋于冻结,每次执行时我都没有输出。

但是,我试图减少数据和程序

运行正常。

有什么办法可以解决这个问题?
>
ok so i have written a program in C where I am dealing with huge
data(millions and lots of iterations involved) and for some reason the
screen tends to freeze and I get no output every time I execute it.
However, I have tried to reduce the amount of data and the program
runs fine.
What could possibly be done to resolve this ?



第42行有一个错误。


-

+ - ----------------------- + -------------------- + ----- ------------------ +

| Kenneth J. Brody | www.hvcomputer.com | #include |

| kenbrody / at\spamcop.net | www.fptech.com | < std_disclaimer.h |

+ ------------------------- + --------- ----------- + ----------------------- +

不要 - 邮寄给我:< mailto:Th ************* @ gmail.com>

There''s a bug on line 42.

--
+-------------------------+--------------------+-----------------------+
| Kenneth J. Brody | www.hvcomputer.com | #include |
| kenbrody/at\spamcop.net | www.fptech.com | <std_disclaimer.h|
+-------------------------+--------------------+-----------------------+
Don''t e-mail me at: <mailto:Th*************@gmail.com>


pereges写道:


< program" freeze"关于巨大数据和数百万次迭代>
pereges wrote:

<program "freezing" on "huge data" and millions of iterations>

我忘记在我尝试打印数据时发生这种情况。
I forgot to mention this happened while I was trying to print data.



打印在哪里?到磁盘文件?到闪存驱动器?到屏幕?其他一些

设备?记忆?什么是打印功能的代码[s]?

涉及的数据结构是什么?你尝试过编译器优化吗?您是否尝试了特定于I / O的例程(有时比标准的C更快)?b
$ b?您是否对该程序进行了分析?

Print where? To a disk file? To a flash drive? To a screen? Some other
device? To memory? What''s the code for the print function[s]? What are
the data structures involved? Did you try compiler optimisations? Did
you try implementation specific I/O routines (which are sometimes
faster than standard C ones)? Did you profile the program?


我看到它无法用于极其庞大的数据。
I have seen it can''t work for extremely huge data.



根据自己的口味,工作或工作太慢?


除非你告诉我们你现在的代码和地方确切地说它的性能

不能满足你的期望,除了购买更快的存储设备的通用建议之外,绝对没有什么可以说的。 br />
更快,更强大的硬件。

Can''t work or works too slowly for your taste?

Unless you show us your current code and where exactly it''s performance
is not meeting your expectations, there''s absolutely nothing that can
be said other than the generic advice to buy faster storage devices and
faster, more powerful hardware.


这篇关于处理大量数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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