JavaRush
AI Academy
new
Promotion
Learning
Courses
Tasks
Quizzes
Games
Help
Schedule of nudges
Internship
Community
Users
Forum
Chat
Articles
Activities
Reviews
Subscriptions
Light theme

Lectures

  • Reviews
  • About us
  • CS50
Start
Start learning
Start learning
  • My progress
  • Courses
  • Quest map
  • Lectures
  • IO performance bottlenecks

    JAVA 25 SELF
    41 level,0 lecture
    This lecture explains what a “bottleneck” in input/output is, and how to detect and eliminate it. We will break down why disk and network operations are significantly slower than RAM, which anti-patterns are common (reading one byte at a time via read(), synchronous logs, etc.), how buffers help ( BufferedInputStream, BufferedReader), profilers ( VisualVM, JProfiler), and timing via System. currentTimeMillis (). We will run a practical experiment reading the file "bigfile.txt", compare speed with and without buffering, look at the impact of SSD/HDD and the network, and list typical mistakes.
    Open
  • NIO Channels and ByteBuffer

    JAVA 25 SELF
    41 level,1 lecture
    A practical introduction to non-blocking Java NIO I/O: we examine how channels Channel and buffers ByteBuffer differ from streams InputStream/ OutputStream, how to read and write using FileChannel, seek with position() and resize with truncate(), work with buffer parameters ( capacity, limit, position, mark), and choose between allocate() and allocateDirect(). We show zero-copy operations transferTo()/ transferFrom() and typical mistakes like a forgotten flip() and an incorrect buffer mode.
    Open
  • Large files: chunking patterns

    JAVA 25 SELF
    41 level,2 lecture
    How to efficiently process files tens of gigabytes in size without OutOfMemoryError: split into chunks, read by position via RandomAccessFile and FileChannel, parallelize tasks with ExecutorService/ ForkJoinPool, and for simple copying use zero-copy via transferTo/ transferFrom. We discuss choosing chunk size, handling line boundaries, synchronizing results, and common mistakes.
    Open
  • Working with large files: chunking, memory mapping

    JAVA 25 SELF
    41 level,3 lecture
    How to safely and quickly process huge files in Java: read in parts (chunking) via streams and buffers, tune buffer size for performance, use memory mapping via MappedByteBuffer and FileChannel for ultra-fast random access. We will cover the pros and cons of memory mapping, recommendations on resources and parallelism, as well as common mistakes (for example, OutOfMemoryError, forgotten descriptors, chunk overlap during search).
    Open
  • Archives/compression: java.util.zip

    JAVA 25 SELF
    41 level,4 lecture
    A hands-on lecture on working with archives and compression in Java: get familiar with the java.util.zip package, the ZipInputStream/ ZipOutputStream streams and the random-access class ZipFile, control compression levels via Deflater ( 0… 9, DEFAULT_COMPRESSION), work with GZIPInputStream/ GZIPOutputStream for single files, and pack/unpack directories using Files.walk and filtering with PathMatcher ( "glob:**/*.txt"). We will discuss security: protection against Zip Slip via path normalization and volume control for a zip bomb, and also build a mini CLI “zip/unzip” with globs.
    Open
Courses
  • Java Course
  • Python Course
  • Development with Claude Code
  • All 16 courses
University
  • Java FullStack
  • Python FullStack
  • AI Native Developer
  • Web FullStack
Community
  • Articles
  • Forum
  • Help with Tasks
Company
  • About us
  • Contacts
  • Reviews
  • Pricing
  • Questions and answers
JavaRush JavaRush: online courses in Java and other programming languages, where you learn by solving tasks. We started in 2012 with a Java course, and today there are 16 courses: Java and Spring, Python, web development, SQL, Go, C#, C++, Kotlin, Swift, Docker and AI development. More than 10,000 tasks with instant checks, and the first level of any course is free. Learn on your own or with a mentor at JavaRush University.
Follow us
Язык интерфейса
Русский
English
Українська
"Programmers are not born" © 2026 JavaRush Terms of Use and Privacy policy
MastercardVisa
"Programmers are not born" © 2026 JavaRush Terms of Use and Privacy policy