Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8075335
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T14:57:25+00:00 2026-06-05T14:57:25+00:00

I wrote a simple command line tool for a special need to convert a

  • 0

I wrote a simple command line tool for a special need to convert a specific ini file to a property list. I am using NSPropertyListSerialization to write the Dictionary to a binary property list file of 307kb. However when I write it to XML and after convert it using plutil to a binary property list the file is only 224kb in size.

I’d like to save as much data as possible but I also want to stay away from NSTask. The question here is, how would I achieve the same results from code as I achieve using plutil.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T14:57:26+00:00Added an answer on June 5, 2026 at 2:57 pm

    According to this very old thread, plutil will look for identical sub-trees such as arrays and unique them in the resulting plist. NSPropertyListSerialization used to do this a long time ago, but this was removed because the process is relatively slow and developers expect the serialization to work as fast as possible.

    After googling around it doesn’t look like it will be easy to find code to do this yourself. You may just have to deal with the small difference in size, or attempt to roll your own serializer.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to write a simple command line audio player using the Python Gstreamer
I wrote a simple bash script because I was using a grep command with
I have an XML document collection, an inverted file indexer, and a command-line tool
I need to write a simple command-line application in Java. It would be nice
I wrote a simple console tool that reads a file and then writes something
I wrote simple load testing tool for testing performance of Java modules. One problem
I wrote a simple script using python-daemon which prints to sys.stdout : #!/usr/bin/env python
I wrote a quick script to download files using LWP::Simple library and its getstore()
I am trying to understand a simple command-line string that executes Javac and passes
What is the correct way to implement and architect a command line tool as

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.