English 中文(简体)
AWK 优化
原标题:AWK optimization

谁也不能用AWK的文字?

我没有找到任何工具来欺骗AWK的文字。 我有一封信涉及许多万国邮联,因此,我需要知道,我是否对文字做了一些可怕的错误。

例如,我一直通过尾矿寻找一个记录仪的输出,f 在我的手稿被杀死之前就存档。

最佳回答

awkdb自2000年以来没有更新。 该网站也有一些限制。 如果你使用gawk,看看其人页参考资料,你可以看到一些选择,例如<代码>--profile、-optimize---dump-variables等。 你可以尝试这些选择。 另一种选择是,如男子页所示,使用pgawk。

总的来说,如果你的文字执行缓慢,你要么拥有一个REALLY大文档,要么你算法造成问题。 你们至少应当表明你认为正在编纂的《万国邮联》。 如有可能,你应避免做某些事情,例如

  1. 要求大案2(或更多的档案)

    awk{} file

  2. Iterating a file with a while. Loop as you iterate a file

    awk{while ((接线和线;”file2” >0){}文档

  3. Storing values into arrays for a big file takes up memory. Try to clear some of the elements (or delete the array) if not in use anymore.

问题回答

我从未使用过,但awkdb。 Cassat Emptor。

如果你使用gnu awk,最近版本有-profilepgaw,这至少应当让你知道在抽象层面正在做些什么。





相关问题
Eclipse: Hover broken in debug perspective

Since upgrading Eclipse (Galileo build 20090920-1017), hover in debug no longer displays a variable s value. Instead, hover behaves as if I were in normal Java perspective: alt text http://...

IIS 6.0 hangs when serving a web-service

I am having issues with one of our web-services. It works fine on my development machine (win XP) whether I host it as a separate application or using cassini from Visual studio. Once I deploy on the ...

Tips for debugging a made-for-linux application on windows?

I m trying to find the source of a bug I have found in an open-source application. I have managed to get a build up and running on my Windows machine, but I m having trouble finding the spot in the ...

Asp.Net MVC - Problem returning a model to the view

I ve recently started using the Areas functionality of the Preview2 and it was working ok until I needed to return a Model to the view. Controller: public ActionResult ForgotPassword() { return ...

Unable to generate PDB files in Visual Studio 2005

For most assemblies, I m able to generate their respective .pdb files. However, I ve got one project that isn t generating their .pdb files. I ve made sure that it on debug mode and that the project ...

热门标签