DZone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Over 2 million developers have joined DZone.
Log In / Join
Refcards Trend Reports
Events Video Library
Refcards
Trend Reports

Events

View Events Video Library

Zones

Culture and Methodologies Agile Career Development Methodologies Team Management
Data Engineering AI/ML Big Data Data Databases IoT
Software Design and Architecture Cloud Architecture Containers Integration Microservices Performance Security
Coding Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
Culture and Methodologies
Agile Career Development Methodologies Team Management
Data Engineering
AI/ML Big Data Data Databases IoT
Software Design and Architecture
Cloud Architecture Containers Integration Microservices Performance Security
Coding
Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance
Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks

Elevate your data management. Join a lively chat to learn how streaming data can improve real-time decision-making, and how to reduce costs.

Platform Engineering: Enhance the developer experience, establish secure environments, automate self-service tools, and streamline workflows

Build Cloud resilience. High-profiled cloud failures have shown us one thing – traditional approaches aren't enough. Join the discussion.

Data Engineering: The industry has come a long way from organizing unstructured data to adopting today's modern data pipelines. See how.

Avatar

Albert Chou

Principal Application Engineer/Architect at Cloud9 Analytics

Redwood City, US

Joined Aug 2010

Stats

Reputation: 76
Pageviews: 9.4K
Articles: 1
Comments: 2
  • Articles
  • Comments

Articles

article thumbnail
Faster Line Count With Grep Rather Than Wc
wc can be dramatically slower than desirable if all you want is a count of lines in a file (e.g., ~6 minutes vs. the grep technique shown below, which took 10 seconds). grep -c '\n' filename
August 4, 2010
· 7,959 Views

Comments

Google’s Flash Indexing Disaster

Aug 20, 2007 · Mr B Loid

How about making the "include directories in the list" option an argument to the function? function directoryToArray( $directory, $recursive, $include_directories_in_list ) ... if (is_dir($directory. "/" . $file)) { ... if ( $include_directories_in_list ) { $file = $directory . "/" . $file; $array_items[] = preg_replace("/\/\//si", "/", $file); } ...
Google’s Flash Indexing Disaster

Aug 20, 2007 · Mr B Loid

Furthermore, default argument values would make it nicer to use: function directoryToArray( $directory, $recursive = false, $include_directories_in_list = true ) { ...

User has been successfully modified

Failed to modify user

ABOUT US

  • About DZone
  • Support and feedback
  • Community research
  • Sitemap

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • Become a Contributor
  • Core Program
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 3343 Perimeter Hill Drive
  • Suite 100
  • Nashville, TN 37211
  • support@dzone.com

Let's be friends: